import { Component,ViewChild,OnInit } from '@angular/core';
import { PriceQuote } from './price-quote/price-quote.component';
import { ChildComponent } from './child/child.component';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {

  @ViewChild('child1')
  child1:ChildComponent;

  // title:string = 'life work';

  // greeting:string = 'hello world';

  // user:{name:string} = {name:'tom'};

  // priceQuote:PriceQuote = new PriceQuote('',0); 
  
  // priceQuoteHander(event){
  //   // this.priceQuote = event;
  // }

  // buyHandel(event){
  //   this.priceQuote = event;
  // }

  ngOnInit(){
    this.child1.sayHello();
  }
}
